home *** CD-ROM | disk | FTP | other *** search
- Subject: Embedded frame size request
- Sent: 12/4/96 11:15 AM
- Received: 12/4/96 11:41 AM
- From: Jeffrey S. Shulman, kilroy@netcom.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- When my part is embedded in another part I want to specify a desired
- size for my frame (I realize I may not get it). This looked easy, just
- call RequestFrameShape. Well, I called RequestFrameShape from my
- frame's PostCreateViewFromStream method and I get the proper frame
- size BUT the contents are still 80x80 (a scrolling view). I tried
- calling SetSize on the content view but that didn't work either.
-
- One culprit looks like ODF's FW_CSuperView::CreateSubViewsFromStream method
- because it *resets* the extent back to what it was before it called my
- PostCreateViewFromStream method. So clearly my PostCreateViewFromStream method
- isn't the proper place to call RequestFrameShape. The documentation nor the
- examples show how this should be done.
-
- Help! Thanks!
-
- Jeff
-